<template>
	<view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		computed:{
			haveLogin(){
				return this.$store.getters.haveLogin
			}
		},
		onShow() {
			if(this.haveLogin){
				uni.reLaunch({
					url:'/pages/index/index'
				})
				this.$store.dispatch("user/getMineInfor");
			}else{
				uni.reLaunch({
					url:'/pages/login/login'
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
